package com.coder.shop.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.coder.bean.WebResult;

@Controller
public class GoodsController {

	@RequestMapping("/test")
	@ResponseBody
	public WebResult test(HttpServletRequest  request) {
		HttpSession session = request.getSession();
		return WebResult.getSuccessResult("sessionId", session.getId());
	}
	
}
